| Enumerations | ||
| Tags weighting options. | ||
| Tags for Gradient-based optimization algorithms. | ||
| Public methods | ||
| Create a blackbox objective. | ||
| Public fields | ||
| Public methods | ||
| Create a constant elasticity of subsitution objective. | ||
| virtual | Compute CES. | |
| Public fields | ||
| Public methods | ||
| virtual | ||
| Create a CobbDouglas objective. | ||
| virtual | \(A{\prod}_{i=1}^N x_i^{\alpha_i}\). | |
| Public methods | ||
| virtual | Store current state of a Constrained Objective (checkpoint to disk). | |
| Create a constrained objective. | ||
| virtual | Default Equality Constraints. | |
| Compute the objective and constraints at multiple points. | ||
| virtual | Compute the ∇f(), objective's gradient at the current vector. | |
| virtual | Default InEquality Constraints. | |
| virtual | Compute the Jg(), vector version of the Lagrangian's Jacobian at the current vector. | |
| Decode the input, return the whole vector, inequality and equality constraints, if any. | ||
| virtual | ||
| Public methods | ||
| Public fields | ||
| const | path or prediction object. | |
| estimation stage. | ||
| transition parameters . | ||
| utility parameters . | ||
| Public methods | ||
| An objective based on an economic model with data and (possibly) a nested solution method. | ||
| Set the estimation stage. | ||
| Specify the objective as two stage. | ||
| virtual | Calls and returns data->EconometricObjective() or uses SemiClosedForm() if in Gradient
calculation. |
|
AuxiliaryOutcome to
to the DP, which would then always average across states and household types to the fixed factor.PathPrediction of length \(T\) starting from exogenous
initial conditions.| Public fields | ||
| const | list of aggregate prod. | |
| const | 0.0 or vector of quantity depreciations. | |
| computed system. | ||
| aggregate Qs from prediction. | ||
| const | columns of pred that match up to inputs. | |
| const | ergodic distribution PathPrediction. | |
| const | number of periods in equilibrium. | |
| Public methods | ||
| Create a system of aggregate equilibrium equations. | ||
| Prints a message and details about the objective. | ||
| virtual | Built-in system of equations for Equilibrium models. | |
| Public fields | ||
| const | ||
| const | ||
| const | ||
| Public methods | ||
| GHK based objective for MNP log likelihood. | ||
| Compute and return the vector of log-likelihoods at the current parameters. | ||
| Enumerations | ||
| Public fields | ||
| const | # of nodes in quadrature | |
| Public methods | ||
| Gauss-Hermite based objective for MNP log likelihood. | ||
| Compute and return the vector of log-likelihoods at the current parameters. | ||
| Public methods | ||
| Public fields | ||
| const | # observed types, environment | |
| const | D x K | |
| const | ||
| const | Discrete environment-type var | |
| matrix of indicators of valid d,k combos | ||
| const | ||
| Public methods | ||
| virtual | If scur.v > maxpt.v call Save and update maxpt. |
|
| virtual | Decode and return the parameter array. | |
| virtual | . | |
| Decode the input, compute the objective, check the maximum. | ||
| virtual | Compute the objective at multiple points. | |
| virtual | Compute the ∇f(), objective's gradient at the current vector. | |
| Indicate with (d,k) combinations should be computed. | ||
| virtual | Compute the Jg(), vector version of the objective's Jacobian at the current vector. | |
| Create a mixture objective. | ||
| virtual | ||
| virtual | Decode the input, return the whole vector. | |
| virtual | ||
| Public methods | ||
| Create a multinomial logit model. | ||
| Return the log-likelihood vector. | ||
| Public fields | ||
| const | Array of J-1 parameter blocks, one for each equation except Y=0. | |
| matrix of XB indices. | ||
| const | N x J matrix of permutations the first column is index of Y second column is first non-Y choice third column is second non-Y choice etc. |
|
| const | J : number of options | |
| const | integer codes of choices | |
| vector or matrix of likelihods. | ||
| const | Labels for variables | |
| const | indexing vector | |
| const | K : number of X variables | |
| const | X : matrix of exog variables | |
| const | Y : discrete endog vector | |
| Public methods | ||
| Create a new Multinomial Choice Model model. | ||
| Update \(XB\) matrix of indices by observation and option. | ||
| Public fields | ||
| Public methods | ||
| A wrapper that acts like an objective but just calls a model's Solve method and returns 1.0. | ||
| Public fields | ||
| This objective uses raw parameter values. | ||
| static const | ||
| static const | Extension for Load and
Save files, =optobj. |
|
| array free parameter labels | ||
| const | Name for Load & files | |
| holds DoNotVary vector for temp. | ||
| TRUE when computing Gradient, can be used by semi-closed form gradient methods. | ||
| const | label. | |
| log file | ||
| const | name of log file | |
| const | Best so far | |
| static | Version of niqlow that code is written for. | |
| Set in CheckMax(), TRUE if latest check was new max. | ||
| length of F in current cycle. | ||
| length of X. | ||
| Longest vector returned by vfunc(), default=1. | ||
| TRUE if encoded once | ||
| P2P object for using MPI across param vectors | ||
| all parameter labels | ||
| parameter class names | ||
| TRUE (default): exit if NaNs encountered during iteration FALSE: exit with IterationFailed |
||
| Initial vector after Encode() | ||
| P2P object for MPI on a single param vector. | ||
| const | current point. | |
| Output Level. | ||
| static | . | |
| Public methods | ||
| virtual | ||
| virtual | ||
| virtual | If vcur.v > maxpt.v call Save() and update maxpt. |
|
| Compare v to maxpt. | ||
| virtual | Load or save state of the problem to a file. | |
| virtual | Graph the level curves of the objective in two parameters. | |
| virtual | Decode a vector of free variables. | |
| virtual | Encode vector of structural parameters. | |
| virtual | Decode the input, compute the objective, check the maximum. | |
| Preserve the state of free or fixed status of the parameter vector. | ||
| virtual | Compute the objective at multiple points. | |
| virtual | Compute the ∇f(), objective's gradient at the current vector. | |
| virtual | Compute the Hf(), Hessian of objective at the current vector. | |
| virtual | ||
| virtual | Compute the Jg(), vector version of the objective's Jacobian at the current vector. | |
| Load state of the problem. | ||
| virtual | ||
| Create a new objective. | ||
| virtual | Add Parameters to the parameter list to be optimized over. | |
| virtual | Prints a message and details about the objective. | |
| virtual | Reset the free parameter vector and the complete structural parameter vector. | |
| virtual | Revert all parameters to their hard-coded initial values. | |
| virtual | Reset the value of the current and maximum objective. | |
| Store current state (checkpoint to disk). | ||
| Set the formula . | ||
| static | Checks the version number you send with the current version of niqlow. | |
| virtual | Toggle DoNotVary for one or more parameters. | |
| Toggle the value of DoNotConstrain. | ||
| virtual | Toggle DoNotVary for one or more parameters. | |
| virtual | Built in objective, f(ψ). | |
| virtual | Decode the input, return the whole vector. | |
| Public fields | ||
| const | ||
| Public methods | ||
| This is misnamed. | ||
| Create a new non-linear equation. | ||
| Reset the value of the system. | ||
| virtual | ||
| Public fields | ||
| Number of common parameters | ||
| Vector of indices into Psi of common pars | ||
| . | ||
| const | # unobserved types, sub-problems | |
| K Vector of free specific parameters | ||
| const | labels for types / sub problems | |
| const | Discrete sub-problem var | |
| Total free parameters | ||
| Longest vector returned by vfunc(), default=1. | ||
| const | ||
| Public methods | ||
| virtual | If scur.v > maxpt.v call Save and update maxpt. |
|
| virtual | Add parameters to the objective that will have a single value across types/sub-problems. | |
| virtual | Decode and return the structural parameter matrix. | |
| virtual | Encode matrix of structural parameters. | |
| virtual | Decode the input, compute the objective, check the maximum. | |
| virtual | Compute the objective at multiple points. | |
| virtual | Compute the ∇f(), objective's gradient at the current vector. | |
| virtual | Compute the Jg(), vector version of the objective's Jacobian at the current vector. | |
| virtual | . | |
| Create a separable objective. | ||
| virtual | ||
| virtual | Decode the input, return the whole vector. | |
| Public fields | ||
| 1 equation of system. | ||
| Public methods | ||
| virtual | Default system of equations: vfunc(). | |
| virtual | ||
| Create a new system of equations object. | ||
| Public methods | ||
| virtual | Compute the ∇f(), objective's gradient at the current vector. | |
| Create an unconstrained objective. | ||
| L | string, a label for the problem. |
| L | label |
| alphas | CV-compatiable vector of weights/shares. Default is <0.5;0.5> |
| elast | elasticity parameter ε. The exponent on each input is computed as (elast-1)/elast. Default is -2.0 |
| A | constant term (TFP). Default is 1.0 |
| labels | 0 or array of labels for arguments. $$A\left( {\sum}_{i=1}^N \alpha_ix_i^s \right)^{1/s}$$ $$s \equiv {\epsilon-1 \over \epsilon}.$$ |
U = new CES("U");
U -> ToggleParameterConstraint();
| L | label |
| alphas | CV-compatiable vector of exponents. |
| labels | 0 or array of labels for arguments. Sets the parameter vector as \(x\) equal to StDeviations of the same dimension as alphas $$A{\prod}_{i=1}^N x_i^{\alpha_i}$$ |
| f |
| saving |
| L | label |
| ELorN | Number of equality constraints (integer, array of strings, string list of names) |
| IELorN | Number of inequality constraints |
| Fmat, | Nf×J matrix of column vectors to evaluate at |
| F | vector of free parameters. |
| L | string, label |
| data | an object that includes member FN and method EconometricObjective. Typically, OutcomeDataSet or PredictionDataSet object (including the possibility of the derived OutcomeDataSet and PredictionDataSet variety). |
| ... | Parameters and arrays of Parameters to optimize over. |
data.FN, the total number of paths in the panel
| stage | Zero, One or Two
|
| tplist | a Parameter or a list of parameters that affect the transition only. These will be estimated at Stage 0 or Stage 2 |
| uplist | a Parameter list of parameters that affect Utility only. These will be estimated at Stage 1 or Stage 2. |
data->EconometricObjective() or uses SemiClosedForm() if in Gradient
calculation.
| L | label |
| T | number of periods of static equilibria. 1 [default] |
| P | an array of parameters or a parameter block of prices \(p\) 0 [default] a vector of StDeviations is created of the same length as the parameter list of aggF
This should be called in the creator function of a derived equilibrium class after the following constants have
been initialized inside the creator:
|
| orig | string, origin of the print call |
| fn | integer, no print to file. file, prints to file as well as screen |
| toscreen | TRUE: print full report to screen as wellFALSE: only print orig to screen |
| Enumerations | ||
| Anonymous enum 1 | identity, onlydiag, lowertriangle, SigmaOptions | |
| L |
| fn |
| Yname |
| Xnames |
| iSigma |
| Npts |
| fn |
| Yname |
| Xnames |
scur.v > maxpt.v call Save and update maxpt.
| fn | file name |
| F | vector of free parameters. |
| F | vector of free parameters. |
| Fmat, | Nf×J matrix of column vectors to evaluate at |
| aFvec, | address of a ?×J matrix to return f() in. |
| afvec, | 0 or address to return aggregated values in. |
| mDK | D×K matrix of 0s/1s |
| L | string, a label for the problem. |
| Dvar, | integer>0, the number of environments Discrete variable that codes the environment |
| Kvar, | integer>0, the number of types Discrete variable that codes the types |
| MixType, | MixedWeightOptions |
| ... | D×K matrix or D-array of values No optional argument means Lambda[d] = new Simplex("L"+sprint("%2u",d),K), for d = 0, … D‾ A single argument, then it must be a D×K matrix Lambda[d] = new Simplex("L"+sprint("%2u",d),va[0][d][]), for d = 0, … D‾ D arguments, then each must be a ParameterBlock of size K and Lambda[d] = va[d] for d = 0, … D‾ |
| F | vector of free parameters. |
| L | label |
| fn | string, a file to load the data from using Ox Database.Load()
|
| Yname | string, name or label of the column in the file that contains Y Yname can contain any integers. MNP will translate the unique sorted values into 0...Jvals-1 |
| Xnames | a string of the form var1 var2 ... varN |
| L | label |
| fn | string, a file to load the data from using Ox Database.Load()
|
| Yname | string, name or label of the column in the file that contains Y Yname can contain any integers. MNP will translate the unique sorted values into 0...Jvals-1 |
| Xnames | a string of the form var1 var2 ... varN |
| model | Object with a method named Solve() or a member named method with
a method named Solve() |
vcur.v > maxpt.v call Save() and update maxpt.
| fn | file name |
| v | value of objective |
| fn | file name to print to Output is determined by Volume |
| f | file object |
| saving | TRUE: save status to the file FALSE: load from the file and close it, call Encode |
| F, | nfree x 1 vector of optimized parameters. 0 [default], use vcur.F for decode |
| inX | 0 [default] get new starting values from the parameters a vector, new starting values. |
Encode() and starting values will be retrieved from the current values of
parameters.optobj.
| F | vector of free parameters. |
| extcall | TRUE [default] go into server mode if MPI server, send Stop if client |
| Store | TRUE, store the current status FALSE restore after a previous store |
| Fmat, | Nf×J matrix of column vectors to evaluate at |
| aFvec, | address of a ?×J matrix to return f() in. |
| afvec, | 0 or address to return aggregated values in (as a 1 × J ROW vector) |
| abest, | 0 or address to return index of best vector The maximum value is also computed and checked. |
| extcall | [default=TRUE]. if running in parallel Stop message sent out
vcur.G
Any derived Objective can replace this virtual method with one that computes analytic gradients or other
approaches.
|
| fname | string, name of file 0 [default], use the default name, the label with spaces removed -1, do nothing and return FALSE. |
DONOTVARY for each parameter. The value of F is ignored by Load. Encode() called by Load.
| L | string, label for the objective. |
| CreateCur | create a new Point in vcur |
| ... | the first or next (and possibly only) parameter to add to the objective array: any argument can send an array which contains only parameters and blocks |
| orig | string, origin of the print call |
| fn | integer, no print to file. file, prints to file as well as screen |
| toscreen | TRUE: print full report to screen as wellFALSE: only print orig to screen |
| HardCode | TRUE=hard-coded parameter values used. FALSE [default] Start vector used Must be called anytime a change in constraints is made. So it is called by Encode() and ReInitialize() |
IterationFailed
| fname | string, name of file 0 [default] use fname |
| AggType |
| v | integer [default=200] |
| pblock | ParameterBlock |
| elements | vector of indices of block elements to toggle. |
| ... | Parameters or arrays of parameter To toggle elements of a parameter block ... |
| F | vector of free parameters. |
| fn | file name |
| L | label for the system. |
| msys | System object that is the mother system 0 [default] no mother system A system of this type can be solved using OneDimSolve |
| insys |
| inpar |
scur.v > maxpt.v call Save and update maxpt.
| fn | file name |
| ... | Parameter(s) and/or arrays of Parameters to add to the objective |
vfunc() common parameters will have the same value for each k.
| F | vector of free parameters. |
| X | 0 get starting values from current X vector N×1, common starting values across types matrix N×K, starting values for all types. Only first column value used for common types |
| CallBase | TRUE, simply call Encode(), used in parallel processing. FALSE (default), proceed with separable encoding |
| F | vector of free parameters. |
| Fmat, | Nf×J matrix of column vectors to evaluate at |
| aFvec, | address of a ?×J matrix to return f() in. |
| afvec, | 0 or address to return aggregated values in. |
cur.J.
| L | string, a label for the problem. |
| Kvar, | integer>0, the number of sub objectives Discrete variable that codes the problem vector or ParameterBlock, weights on values of k |
| F | vector of free parameters. |
| insys | if eq1 an object then the equation index to select [default=0] |
| inpar | if eq1 an object the parameter or parameter index to vary. |
| L | label for the system. |
| LorN | The size of the system indicated in 1 of 3 ways: integer [default = 1], N the size of the system array of length N, where each element is a string, the label for the equation. string with N space-separate labels, the labels of the equations parsed by varlist. |
3x3 system of equations:
mysys = new System(3);
mysys = new System({"A","B","C"});
mysys = new System("Eq0 Eq2 Eq2");
∇ f(ψ)Stored in
vcur.G
| L | label |